package by.semerikov.servlets;

import javax.servlet.http.HttpServletRequest;

public class WebCommand extends Command{
	private HttpServletRequest request;
	public WebCommand( HttpServletRequest request) {
		this.nameCommand = request.getParameter("command");
		this.request = request;
	}
	
	
	public WebCommand() {
	}
	
	@Override
	public String getParameter(String name) {
		return request.getParameter(name);
	}

	

	public HttpServletRequest getRequest() {
		return request;
	}

	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

	
	

}
